# -*- coding:UTF-8 -*-
from poium import Page,Element

class LoginPage(Page):
    login_button1 = Element(css='span[data-type="tuzhan"]')
    accounts = Element(css='input[placeholder="请输入你的登录账户"]')
    passwords = Element(css='input[placeholder="请输入密码"]')
    login_button2 = Element(css='button.g-btn.login-btn.do-btn')
    error_tip = Element(css='div.login-form span.error-tips')

    def login(self,account,password):
        self.login_button1.click()
        self.accounts.input(account)
        self.passwords.input(password)
        self.login_button2.click()